package dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pojo.Sale;

import java.util.List;

@Mapper
public interface SaleDao {
    int addSale(Sale sale);

    List<Sale> getSaleInfo(@Param("currentNo") Integer current, @Param(
            "pageSize") Integer pageSize, @Param(
            "typeSort") Integer typeSort);

    int getSaleInfoCount();
}
